<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<p class="listName"><s:text name="measurement.list.measurements" /></p>
<s:if test="measurements.size > 0">
	<div class="list">
		<s:iterator value="measurements">
			<div id="measurement_<s:property value="id"/>" class="listItem">
				<div class="itemProperty">
					<s:property value="node.identCode" />
				</div>
				<div class="itemProperty">
					<s:property value="serialInterface.port" />
				</div>
				<div class="itemProperty">
					<s:date name="date" format="dd/MM/yyyy hh:mm" />
				</div>
				<div class="itemProperty">
					<s:property value="temperature" />
				</div>
				<div class="itemProperty">
					<s:property value="message" />
				</div>
				<div class="itemProperty">
					<s:property value="returnCode" />
				</div>
				<div class="itemAction">
					<s:url id="removeUrl" action="removeMeasurement">
						<s:param name="id" value="id" />
					</s:url>
					<s:a href="%{removeUrl}" theme="ajax" targets="measurements"><s:text name="measurement.list.item.remove" /></s:a>
				</div>
			</div>
		</s:iterator>
	</div>
</s:if>